package com.cloudalibabaseatastock10089.service.impl;

import com.cloudalibabaseatastock10089.entity.Stock;
import com.cloudalibabaseatastock10089.mapper.StockMapper;
import com.cloudalibabaseatastock10089.service.StockService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 库存表 服务实现类
 * </p>
 *
 * @author zx
 * @since 2024-12-06
 */
@Service
public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements StockService {

    @Resource
    private StockMapper stockMapper;

    /**
     * 扣减库存
     */
    @Override
    public void deduct() {
        stockMapper.deduct();
    }
}
